package com.job.meeting.mapper;

import com.job.meeting.pojo.booking;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BookingMapper {
    int updateBooking(booking booking);
    int insertBooking(booking booking);
    int deleteBooking(int id);
    booking getBookingByID(int id);
    List<booking> getAllBookingByMeetingRoomID(int id);

    //@Select("select * from meeting.booking where status = #{state}")
    List<booking> getAllBookingByState(int state);
    List<booking> getAllBookingByUserID(int id);
}
